use std::collections::HashMap;

pub fn new_count_distinct(input_str: &str) -> usize {
    let mut hash = HashMap::<String, i32>::new();
    let data: Vec<&str> = input_str.split(',').collect();
    for single in data.into_iter() {
        hash.entry(single.to_string()).or_insert(0);
    }
    hash.len()
}
